package com.qingdai.service.impl;

import com.qingdai.emuns.Commodity;
import com.qingdai.mapper.CommodityEsMapper;
import com.qingdai.service.CommodityEsService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommodityEsServiceImpl implements CommodityEsService {
    @Resource
    private CommodityEsMapper commodityEsMapper;

    @Override
    public Iterable<Commodity> saveCommodities(List<Commodity> allCommodity) {
        return commodityEsMapper.saveAll(allCommodity);
    }
}

